package com.whmskj.xjlhbc.service;

import com.whmskj.xjlhbc.core.AjaxResult;
import com.whmskj.xjlhbc.domain.Js05dVarietyMaintenance;
import com.whmskj.xjlhbc.dto.OrderAddDto;
import com.whmskj.xjlhbc.dto.OrderUpdateDto;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Sakura
 * @Date: 2025/8/20 9:09
 * @Version: v1.0.0
 * @Description: TODO
 **/
@Service
public interface OrdersService {

    /**
     * 新增订单
     * @param request
     * @return
     */
    AjaxResult addOrder(OrderAddDto request);

    /**
     * 查询品种列表
     * @param keyword
     * @return
     */
    List<Js05dVarietyMaintenance> getVarietyList(String keyword);

    List<Js05dVarietyMaintenance> listSczVariety(String noNo3);
    /**
     * 删除订单
     * @param orderNumber
     * @return
     */
    AjaxResult deleteByOrderNumber(String orderNumber);

    /**
     * 修改订单
     * @param updateDto
     * @return
     */
    AjaxResult updateOrder(OrderUpdateDto updateDto);

    /**
     * 订单报表
     * @return
     */
    AjaxResult getOrderReport();

    Js05dVarietyMaintenance getVarietyById(String id);
    Js05dVarietyMaintenance getVarietyByNoNo3(String noNo3);
}
